<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>添加品牌</strong></div>
        <div class="fixed-empty"></div>
        <form method="post" id="myform" name="myform" action="">
            <table class="table tb-type2">
                <tbody>
                    <tr>
                        <td width='160px'><label class="validation" for="title">商品品牌分类：</label></td>
                        <td id="recommend_gcategory">
                            <select name="cat_id" id="category" class="querySelect">
                                <option value="0">顶级分类</option>
                                <volist name="category" id="v">
                                    <option value ="{$v['cat_id']}" <if condition="$re['cat_id'] eq $v['cat_id']">selected="selected"</if>>{$v['cat_name']}</option>
                                </volist>
                            </select>
                        </td>
                        <td width='*'></td>
                    </tr>
                    <tr>
                        <td width="10%"><label class="validation" for="title">品牌名称：</label></td>
                        <td width="30%">
                            <input id="titles" name="title" value="{$rs['title']}" class="input input_small" type="text">
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td><label class="validation" for="letter">品牌字母：</label></td>
                        <td>
                            <input id="titles" name="letter" value="{$rs['letter']}" class="input input_small" type="text">
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td class="required"><label class="validation" for="img">品牌图片：</label></td>
                        <td class="vatop rowform">
                            <!-- 图片上传按钮 -->
                            <a class="button input-file bg-blue" href="javascript:void(0);">+ 浏览文件
                            <input class="fileupload" type="file" name="image" data-name="img" data-num="1">
                            </a>
                            <!-- 图片展示模块 -->
                            <div class="files">
                                <div class="images_zone">
                                    <input type="hidden" name="img" value="{$rs['img']}">
                                    <span><img src="{$rs['img']}!250x250"></span>
                                    <a href="javascript:;" style="display: none;">删除</a>
                                </div>
                            </div>
                            <div style="clear:both;"></div>
                            <!-- 图片上传进度条模块 -->
                            <div class="up_progress"><div class="progress-bar"></div></div>
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td><label>是否推荐：</label></td>
                        <td>
                            <div class="form-group">
                                <div class="field">
                                    <div class="button-group radio">
                                        <if condition="$rs['state'] eq 1">
                                            <label class="button active"><input name="state" value="1" checked="checked" type="radio"><span class="icon icon-check"></span> 是</label>
                                            <label class="button"><input name="state" value="0" type="radio"><span class="icon icon-times"></span> 否</label>
                                            <else />
                                            <label class="button"><input name="state" value="1" type="radio"><span class="icon icon-check"></span> 是</label>
                                            <label class="button active"><input name="state" value="0" checked="checked" type="radio"><span class="icon icon-times"></span> 否</label>
                                        </if>
                                    </div>
                                </div>
                            </div>
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                    <tr>
                        <td><label class="validation" for="px">排序：</label></td>
                        <td>
                            <input id="titles" name="px" value="{$rs['px']}" class="input input_big" type="text">
                        </td>
                        <td class="vatop tips"></td>
                    </tr>
                </tbody>
                <tfoot class="panel-foot">
                    <tr>
                        <td colspan="3">
                            <input type="hidden" value="{$rs['id']}" name='id' />
                            <input type="submit" value="提交" class="button bg-main" />
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({});
</script>